import { hyRequest } from '@/service'
import type { result } from '@/service/type'

export const $rariff = {
  findPage: (data: any) => {
    return hyRequest.get<result>({
      url: '/asm/rate/basePolicy/findPage',
      params: data
    })
  },
  updateStatus: (data: any) =>
    hyRequest.post<result>({
      url: '/asm/rate/basePolicy/updateStatus',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      },
      data
    }),
  search: (data: any) =>
    hyRequest.get<result>({
      url: '/asm/rate/basePrice/search',
      params: data
    }),
  importExcel: (data: any) =>
    hyRequest.post<result>({
      url: '/asm/rate/basePolicy/import',
      data
    })
}
